package org.dromara.activity.service;

import org.dromara.activity.domain.School;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.activity.domain.bo.SchoolBo;
import org.dromara.activity.domain.vo.SchoolVo;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;

/**
* @author Administrator
* @description 针对表【t_school】的数据库操作Service
* @createDate 2024-01-16 09:59:09
*/
public interface SchoolService extends IService<School> {

    /**
     * 查询学校
     * @param school
     * @param pageQuery
     * @return {@link TableDataInfo}<{@link SchoolVo}>
     */
    TableDataInfo<SchoolVo> selectPageSchoolList(SchoolBo school, PageQuery pageQuery);

    /**
     * 校验学校名称
     * @param school
     * @return boolean
     */
    boolean checkSchoolNameUnique(SchoolBo school);

    /**
     * 新增学校
     * @param school
     * @return int
     */
    int insertSchool(SchoolBo school);

    /**
     * 修改学校
     * @param school
     * @return int
     */
    int updateSchool(SchoolBo school);


    /**
     * @param id
     * @param status
     * @return int
     */
    int updateSchoolStatus(Integer id, Integer status);

    /**
     * 删除学校
     * @param ids
     * @return int
     */
    int deleteSchoolByIds(Long[] ids);

}
